<!--
 * @Author: Qi
 * @version: C2.1.1
 * @Date: 2021-04-02 14:16:15
 * @LastEditors: Qi
 * @LastEditTime: 2021-05-11 19:36:52
 * @Descripttion: 页面重定向
-->
<script>
export default {
  created() {
    const { params, query } = this.$route
    const { path } = params
    this.$router.replace({ path: '/' + path, query })
  },
  render: function(h) {
    return h() // avoid warning message
  }
}
</script>
